import {httpGet, httpPost, httpDelete, httpPut} from '../services/http'
import {BaseDTO} from './base'
declare type Int64 = number

export interface RecordPaymentInfoDTO {
  id: string
  money: string
  getInDate: string
  customerInfo: string
  type: string
  orderNumber: string
  voucherStatus: string
  bank: string
  bankNumber: string
  payOrder: string
}

export default {
  info: {
    recordPaymentInfo(data: {
      customerId: string
      feeId: string
      money: string
      type: string
      bank?: string
      bankNumber?: string
      payOrder?: string
    }): Promise<RecordPaymentInfoDTO> {
      let path = `/api/pos-app/recordPaymentInfo`
      return httpPost(path, data).then(res => res.data.getInInfo)
    },
  },
}
